package com.ishowcode.entity;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ResultCode{
    //成功提示码
    SUCCESS(200, "成功"),

    //自定义失败信息
    FAILURE(500, "失败"),
    BODY_NOT_MATCH(400,"请求的数据格式不符!"),
    SIGNATURE_NOT_MATCH(401,"请求的数字签名不匹配!"),
    NOT_FOUND(404, "未找到该资源!"),
    INTERNAL_SERVER_ERROR(500, "服务器内部错误!"),
    SERVER_BUSY(503,"服务器正忙，请稍后再试!"),
    CODE_ERROR(414,"验证码错误"),
    PassWord_Error(555,"请输入以字母开头，长度在6-18之间，只能包含字符、数字和下划线的密码"),
    PassWord(554,"密码错误"),
    Email_Error(666,"请输入正确的邮箱"),
    Nick_Name_Error(777,"昵称不能为空"),
    File_Upload_Error(515,"文件上传失败"),
    File_Space_Error(5,"账户内存不足"),
   Data_Error(6,"数据同步失败"),
   floder_name_error(7,"文件名已存在"),
   floder_move_error(8,"文件已在该文件夹"),
   fileupload_error(9,"单次上传文件只能选一个文件夹"),
   filedownload_exist_error(10,"该文件不存在"),
   filedownload_error(11,"该文件下载错误"),
    Admin_ERROR(7878,"你不是管理员哦"),
    SERVER_LOGIN_ERROR(8888,"登录出错了，快去登录");

    private final Integer code;
    private final String message;
}
